package com.jdpc.weparty.service.activity

import com.jdpc.weparty.controller.vo.ActivityInfoVo
import com.jdpc.weparty.entity.Activity
import com.jdpc.weparty.entity.ActivityType

data class ActivityInfo(
        var name: String,
        var profile: String,
        var startTime: Long,
        var endTime: Long,
        var activityType: ActivityType,
        var location: String,
        var activityPic: String
)

fun generateActivityInfo(activity:Activity):ActivityInfo{
    return ActivityInfo(
            activity.activityName,
            activity.activityProfile,
            activity.startTime,
            activity.endTime,
            activity.activityType,
            activity.location,
            activity.activityPic
    )
}
fun generateActivityInfo(infoVo: ActivityInfoVo): ActivityInfo {
    return ActivityInfo(
            infoVo.activityName,
            infoVo.activityProfile,
            infoVo.activityStart,
            infoVo.activityEnd,
            infoVo.activityKind,
            infoVo.activityLocation,
            infoVo.activityPic
    )
}